package com.cloud.drore.eboss.supplier.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.cloud.drore.eboos.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: 结算记录实体类<br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/1/8 10:36 <br>
 * @Author: <a href="575842778@qq.com">郑永涛</a>
 */
@Data
@Table(name = "eboos_settlement_record")
public class SettlementRecord extends BaseEntity<Long> {

    /** 结算方式 */
    @JsonProperty("settlement_method")
    @JSONField(name = "settlement_method")
    @ApiModelProperty(name = "settlement_method", notes = "结算方式", example = "周期结算")
    private Integer settlementMethod;

    /** 结算日期 */
    @JsonProperty("settlement_date")
    @JSONField(name = "settlement_date")
    @ApiModelProperty(name = "settlement_date", notes = "结算日期", example = "2018-01-05 00:00:00")
    private Date settlementDate;

    /** 结算金额 */
    @JsonProperty("settlement_money")
    @JSONField(name = "settlement_money")
    @ApiModelProperty(name = "settlement_money", notes = "结算金额", example = "80.00")
    private BigDecimal settlementMoney;

    /** 累计结算金额 */
    @JsonProperty("cumulative_settlement_money")
    @JSONField(name = "cumulative_settlement_money")
    @ApiModelProperty(name = "cumulative_settlement_money", notes = "累计结算金额", example = "80.00")
    private BigDecimal cumulativeSettlementMoney;

    /** 费率 */
    @JsonProperty("rate")
    @JSONField(name = "rate")
    @ApiModelProperty(name = "rate", notes = "费率", example = "0.1")
    private Integer rate;

    /** 实际到账金额 */
    @JsonProperty("actual_amount")
    @JSONField(name = "actual_amount")
    @ApiModelProperty(name = "actual_amount", notes = "实际到账金额", example = "10.00")
    private BigDecimal actualAmount;

    public interface SAVE{};

}